export const EditRules = {
    title: [
        {
            trigger: 'blur',
            required: true,
            message: '请输入文章标题',
        },
    ],
    digest: [
        {
            trigger: 'blur',
            required: true,
            message: '请输入文章简介',
        },
    ],
    tagId: [
        {
            trigger: 'blur',
            required: true,
            message: '请选择文章标签',
        },
    ],
    content: [
        {
            trigger: 'blur',
            required: true,
            message: '请输入文章内容',
        },
    ],
    image_text: [
        {
            trigger: 'blur',
            required: true,
            message: '请输入验证码',
        },
        {
            min: 4,
            max: 4,
            message: '验证码长度错误',
            trigger: 'blur'
        }
    ],
}

export const commentRules = {
    content: [
        {
            trigger: 'blur',
            required: true,
            message: '请输入文章内容',
        },
    ],
    image_text: [
        {
            trigger: 'blur',
            required: true,
            message: '请输入验证码',
        },
        {
            min: 4,
            max: 4,
            message: '验证码长度错误',
            trigger: 'blur'
        }
    ],
}
